import React from 'react'
import { Routes, Route } from 'react-router-dom'
import Mine1 from './Mine1'
import Mine2 from './Mine2'
type Props = {}

export default function Mine({ }: Props) {
    return (
        <div>
            <p>mine</p>
            {/* 设置二级路由的坑及规则 */}
            <Routes>
                {/* 设置默认匹配的二级组件 */}
                <Route path='' element={<Mine1></Mine1>}></Route>
                {/* 二级路由组件不需要拼接一级路径path */}
                <Route path='mine1' element={<Mine1></Mine1>}></Route>
                <Route path='mine2' element={<Mine2></Mine2>}></Route>
            </Routes>
        </div>
    )
}